package com.cll.learn.control.demo05;

import java.util.concurrent.Phaser;

/**
 * 描述信息:
 *
 * @author CLL
 * @version 1.0
 * @date 2021/5/15 18:19
 */
public class PhaserTest2 {

    public static void main(String[] args) {
        Phaser phaser = new Phaser(5);
        for (int i = 0; i < 5; i++) {
            new Thread(new StudentThread("学生" + i, phaser)).start();
        }

        phaser.awaitAdvance(0);
    }
}
